export default {
    // 开启命名空间，当前属性会和模块名字拼接，注册到全局的store中
    namespaced:true,
    state:{
        username:'卢姥爷',
        userInfo:{}
    },
    mutations:{
        CHANGE_USERNAME(state){
            state.username = "雷震字"  
        },
        // 设置用户信息
        SET_USERINFO(state,payload){
            state.userInfo = payload
        }
    },
    getters:{},
    actions:{}
}